namespace Verse;

public static class ThingIDMaker
{
	public static void GiveIDTo(Thing t)
	{
		if (t.def.HasThingIDNumber)
		{
			if (t.thingIDNumber != -1)
			{
				Log.Error(string.Concat("Giving ID to ", t, " which already has id ", t.thingIDNumber));
			}
			t.thingIDNumber = Find.UniqueIDsManager.GetNextThingID();
		}
	}
}
